package com.lmscn.lms.api.model;

import com.jfinal.plugin.activerecord.Model;

import java.util.Date;
import java.util.List;

/**
 * Created by xiaojie on 15-11-11.
 */
public class LoginLog extends Model<LoginLog>{

    public static final LoginLog dao = new LoginLog();


    public  void save(LoginLog loginLog,String name,String username,Long studentId,Date time){
    	loginLog.set("logintime",time);
    	loginLog.set("name",name);
    	loginLog.set("username",username);
    	loginLog.set("student_id",studentId);
    	loginLog.remove("id").save();
    }

//    public LoginLog findByUserName(String username){
//        return  dao.findFirst("select * from  t_login_log where username = ?",username);
//    }
}
